﻿namespace Pottery.Model.Infrastructure
{
    /// <summary>
    /// Constants for model
    /// </summary>
    public static class ModelConstants
    {
        public const string SPACE = " ";

        #region User constants

        public const int MAX_LOGIN_LENGTH = 20;

        public const int MIN_LOGIN_LENGTH = 4;

        public const int MAX_FIRST_NAME_LENGTH = 50;

        public const int MAX_LAST_NAME_LENGTH = 50;

        public const int MAX_PASSWORD_LENGTH = 20;

        public const int MIN_PASSWORD_LENGTH = 6;

        public const int MAX_EMAIL_LENGTH = 100;

        public const int MAX_PHONE_LENGTH = 100;

        public const string EMAIL_REGULAR_EXPRESSION = @"^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$";

        #endregion

        #region Partner Card constants

        public const int CARD_ID_LENGTH = 24;

        #endregion

        #region User History constants

        public const int ACTION_LENGTH = 100;

        public const int DESCRIPTION_LENGTH = 100;

        #endregion

        public const int VOLUME_COUNT = 3;

        public const int MARKING_LETTER_COUNT = 8;

        public const int SHAPE_NAME_LENGTH = 30;

        public const int ID_LENGTH = 10;

        
    }
}
